package com.ebraga.trackerclub.android.manager.service;

import com.ebraga.trackerclub.android.dao.api.ParameterDao;
import com.ebraga.trackerclub.android.dao.service.ParameterServiceDao;
import com.ebraga.trackerclub.android.manager.core.ParameterManagerImpl;
import com.ebraga.trackerclub.android.util.api.AndroidContext;
import com.ebraga.trackerclub.android.util.core.DataAccessObjectImpl;

public class ParameterServiceManager extends ParameterManagerImpl {

	public ParameterServiceManager(AndroidContext context) {
				
		String enviroment = System.getProperty("Enviroment");
		
		if ( enviroment == null || !enviroment.equals("UNIT_TEST") ) {
			
			super.setParameterDao  (new ParameterServiceDao (new DataAccessObjectImpl(context)));
		}
	}
	
	public void setParameterDao (ParameterDao parameterDao){
		super.setParameterDao (parameterDao);
	}
	
}
